from langchain_community.document_loaders import UnstructuredMarkdownLoader
# loader = UnstructuredMarkdownLoader("./project_api.md")
loader = UnstructuredMarkdownLoader("./project_api.md",mode="elements")

docs = loader.load()

print(f"文档数量：{len(docs)}")

for document in docs[:3]:
    print(document)

# print(docs)
# print(len(docs))
# print(docs[0].metadata)